package homework;

public class work03 {

	public static void main(String[] args) {
		System.out.println(isHuiWen("acaa"));
	}

	private static boolean isHuiWen(String str) {
		char[] ch = str.toCharArray();
		for(int i = 0;i<ch.length/2;i++){
			if(ch[i]!=ch[ch.length-1-i]){
				return false;
			}
		}
		return true;
	}

	
}
